import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/addWard',
      component: () => import('../views/AddWard.vue'),
    },
    {
      path: '/showWard',
      component: () => import('../views/ShowWard.vue'),
    },
    {
      path: '/showMedition',
      component: () => import('../views/ShowMedition.vue'),
    },
    {
      path: '/updMedition',
      component: () => import('../views/UpdMedition.vue'),
    },
  ],
})

export default router
